package com.medical.doctor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-08-13 18:42:36
 */
@Data
@TableName("patient_medical_record")
public class PatientMedicalRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 就诊表id
	 */
	@TableId
	private Integer recordId;
	/**
	 * 就诊时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date medicalRecordTime;
	/**
	 * 患者姓名
	 */
	private String patientName;
	/**
	 * 患者年龄
	 */
	private Integer age;
	/**
	 * 身高
	 */
	private Integer height;
	/**
	 * 体重
	 */
	private Integer weight;
    /**
     * 肾功能
     */
    private String renalFunction;
	/**
	 * 婚姻状况
	 */
	private String maritalStatus;
	/**
	 * 生育状况
	 */
	private String fertilityStatus;
	/**
	 * 疾病史
	 */
	private String diseasesHistory;
	/**
	 * 肝功能
	 */
	private String liverFunction;
	/**
	 * 支付就诊费用
	 */
	private BigDecimal medicalPrice;
	/**
	 * 症状
	 */
	private String symptom;
	/**
	 * 医师姓名
	 */
	private Integer doctorId;
	/**
	 * 医师职称
	 */
	private Integer gradeId;
	/**
	 * 医院名称
	 */
	private Integer hospitalId;
	/**
	 * 诊断表外键

	 */
	private Integer diagnoseId;


	@TableField(exist = false)
	private String hospitalName;//医院名称
	@TableField(exist = false)
	private String doctorGrade;//医师级别名称

}
